  import request from '@/utils/request'

// -------- 权限管理 --角色管理 --------

let BASE_ADDRESS = '/base/position'

// 新增 add 
export const getAddRole = (data) => {
  return request({
    url: `${BASE_ADDRESS}/add`,
    method: 'post',	
		data:data
  })
}

// 查询
export const getRoleList = (data) => {
  return request({
		url: `${BASE_ADDRESS}/list`,
    method: 'get',
		params: data
  })
}

// 修改
export const getEditRole = (data) => {
  return request({
    url: `${BASE_ADDRESS}/edit`,
    method: 'put',	
		data
  })
}

// 删除
export const getDeleteRole = (data) => {
  return request({
		url: `${BASE_ADDRESS}/remove/${data}`,
    method: 'delete',
  })
}